<%@page import="com.lb.myeam.core.entity.TeamEntity"%>
<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body bgcolor="#ef4136">
    	<fmt:formatDate value="${today}" pattern="yyyy-MM-dd HH:mm:ss" />
    <table border="1">
    	<tr>
    		<td align="center" bgcolor="yellow">序号</td>
    		<td align="center" bgcolor="yellow">id</td>
    		<td align="center" bgcolor="yellow">teamName</td>
    		<td align="center" bgcolor="yellow">createTime</td>
    		<td align="center" bgcolor="yellow">pid</td>
    		
    		<td align="center" bgcolor="yellow">操作</td>
    	</tr>
    	
    	<c:forEach var="item" items="${teamList}" varStatus="varStatus">
    		<tr>
	    		<td><input type="text" size="1" name="b" value="${varStatus.index+1}"></td>
	    		<td><input type="text" size="12" name="b" value="${item.id}"></td>
	    		<td><input type="text" size="12" name="b" value="${item.teamName }"></td>
	    		<td><input type="text" size="23" name="c" value="${item.createTime }<"></td>
	    		<td><input type="text" size="1" name="d" value="${item.pid }"></td>
	    		<td>
	    			<a href="servlet/TeamServlet?act=delete&id=${item.id}">
	    				<input type="button" value="删除">
	    			</a>
	    			<a href="<%=basePath%>pages/team/team_update.jsp" target="show">
	    				<input type="button" value="修改">
	    			</a>
	    			
	    		</td>
    		</tr>
    		
    	</c:forEach>
    	
    </table>
  </body>
</html>
